<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>打印倒三角星星</title>
</head>

<body>
  <script>
    // 打印三角星星
    // 1. 外层循环控制行数 5 
    // document.write(`这是第${i}行`)
    // 2. 里层循环控制每行几个小星星(小星星的个数等于行数)
    let rows = prompt('输入你需要打印的行数')
    for (let i = 1; i <= rows; i++) {
      for(let j = 1; j <= i; j++) {
         document.write('💗')
      }
      document.write('<br>')

    }

  </script>
</body>

</html>